package com.wxj.edu.service;

import com.wxj.edu.entity.Chapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wxj.edu.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author wxj
 * @since 2021-03-10
 */
public interface ChapterService extends IService<Chapter> {

    /**
     * 1 课程大纲列表，根据课程id进行查询
     */
    List<ChapterVo> getChapterVideoByCourseId(String courseId);

    /**
     * 4 删除
     */
    boolean deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
